﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Guoc.BigMall.Infrastructure.WeChat.Entitys
{
    /// <summary>
    ///   消息转发多客服
    /// </summary>
     [XmlRoot("xml")]
   public class ResponseMessageTransaferCustomerService:ResponseMessage
    {
       public ResponseMessageTransaferCustomerService()
       {
           this.MsgType = "transfer_customer_service";
           this.CreateTime = ConvertDateTimelong(DateTime.Now);
       }

       public override string ToString()
       {
           StringBuilder xml = new StringBuilder();
           xml.Append("<xml>");
           xml.AppendFormat("<ToUserName><![CDATA[{0}]]></ToUserName>", this.ToUserName);
           xml.AppendFormat("<FromUserName><![CDATA[{0}]]></FromUserName>", this.FromUserName);
           xml.AppendFormat("<CreateTime>{0}</CreateTime>", this.CreateTime);
           xml.AppendFormat("<MsgType><![CDATA[{0}]]></MsgType>", this.MsgType);
           xml.Append("</xml>");

           return xml.ToString();
       }
    }

   
}
